let vm = new Vue({
    el: '#app',
    data: {
        searchText: "",
        searchArr: [
            "蛋炒饭","包子","米线"
        ]
    },

    methods: {
        search() {
            if (this.searchText) {
                this.searchArr.push(this.searchText);
                this.searchText = "";
            }
        }
    },
})